package cn.tedu.minirice.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "User对象", description = "商家信息")
public class User {
    @ApiModelProperty(dataType = "long", required = false)
    private Long id;
    @ApiModelProperty(dataType = "String", required = true, value = "商家账号")
    private String username;
    @ApiModelProperty(dataType = "String", required = true, value = "商家密码")
    private String password;
    @ApiModelProperty(dataType = "String", required = true, value = "商家昵称")
    private String nickname;
    @ApiModelProperty(dataType = "String", required = true, value = "商家性别")
    private Integer gender;
    @ApiModelProperty(dataType = "String", required = true, value = "商家手机号")
    private String phone;
    @ApiModelProperty(dataType = "String", required = true, value = "商家身份证")
    private Long idCard;
    @ApiModelProperty(dataType = "String", required = true, value = "商家真实姓名")
    private String realName;
    @ApiModelProperty(dataType = "String", required = true, value = "商家账号状态")
    private Integer status;
    @ApiModelProperty(dataType = "String", required = true, value = "商家是否登录")
    private Integer isLogin;
    @ApiModelProperty(dataType = "String", required = true, value = "账号创建时间")
    private LocalDateTime gmtCreate;
    @ApiModelProperty(dataType = "String", required = true, value = "账号更新时间")
    private LocalDateTime gmtUpdate;
}
